package com.bus.order;

import com.bus.core.events.product.ProductRemoteEventListener;
import com.bus.core.events.product.ProductListener;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ListenerConfig {


    @Bean
    public ProductRemoteEventListener Listener(){
        return new ProductRemoteEventListener();
    }

    @Bean
    public ProductListener Listener2(){
        return new ProductListener();
    }
}
